package com.qqtech.qquan.homemaking.dao;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.homemaking.model.HomemakingSysDict;
import com.qqtech.qquan.homemaking.model.HomemakingSysDictVo;

@Repository
public class HomemakingSysDictDaoImpl extends BaseDaoImpl<HomemakingSysDict> implements HomemakingSysDictDao {
	public static final Logger log = LoggerFactory.getLogger(HomemakingSysDictDaoImpl.class);

	@Override
	public HomemakingSysDictVo getByTypeAndCode(String type, String code) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("type", type);
		map.put("code", code);
		return sqlSessionTemplate.selectOne(getSqlName("selectByTypeAndCode"), map);
	}
	
}
